package guice.boot.archive.container.registry;

import guice.boot.archive.spi.registry.ServiceProviderType;
import guice.boot.archive.spi.service.PriorityOrdered;

/**
 * Ark Container Service Provider, default service provider if provider is not set
 */
public class ContainerServiceProvider extends AbstractServiceProvider {

    private int order;

    public ContainerServiceProvider() {
        this(PriorityOrdered.DEFAULT_PRECEDENCE);
    }

    public ContainerServiceProvider(int order) {
        super(ServiceProviderType.archive_container);
        this.order = order;
    }

    @Override
    public int getPriority() {
        return order;
    }
}